package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.ProschedueTask;
import com.qidianit.mes.pojo.pro.Workflow;

import java.util.List;

public interface WorkflowService {
    /**
     * 通过物料编号查询工艺流程，同时查询出这个工艺的所有工序列表
     * @param code
     * @return
     */
    Result<List<Workflow>> selectListByMaterialCode(String code);
    /**
     *
     * @param workflow
     * @param page
     * @param size
     * @return
     */
    Result<PageInfo<Workflow>> selectList(Workflow workflow, int page, int size);

    /**
     *
     * @param WorkflowCode
     * @return
     */
    Result<Workflow> selectByCode(String WorkflowCode);

    /**
     *
     * @param workflow
     * @return
     */
    Result<Workflow> saveWorkflow(Workflow workflow);

    /**
     *
     * @param workflow
     * @return
     */
    Result updateById(Workflow workflow);

    /**
     *
     * @param id
     * @return
     */
    Result deleteById(Long id);

    /**
     * 
     * @param ids
     * @return
     */
    Result batchDelete(Long[] ids);
}
